]> dgit.raspbian.org Git - gnome-shell.git/log
gnome-shell.git
2 years agomessageTray: Allow settings gobject properties of Source on creation
Julian Sparber [Thu, 25 Jan 2024 20:52:34 +0000 (21:52 +0100)]
messageTray: Allow settings gobject properties of Source on creation

This also makes the `icon` property of `Source` writable so that it can
be set during creation instead of overriding the getter of the icon
property.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agoFdoNotifications: Only set the title of a Source once
Julian Sparber [Thu, 25 Jan 2024 20:11:50 +0000 (21:11 +0100)]
FdoNotifications: Only set the title of a Source once

Even though the comment in the code says that sources are reused even
thought the app title has changed this is actually not the case. Therefore
when ever the app title of a notification changes a new `Source` is
created. Therefore there is no point in setting the app title again.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Expose Source icon as GObject property
Julian Sparber [Wed, 24 Jan 2024 11:25:21 +0000 (12:25 +0100)]
messageTray: Expose Source icon as GObject property

As the notification redesign affects the API anyway, we can just
as well use the opportunity to modernize the code.

Turning the icon into a GObject property means we no longer need
a custom signal for change notifications, and the icon becomes
usable in bindings.

Since setting an `GThemedIcon` is common this also adds a convenience
property to set the icon name directly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Remove unused properties from Source
Julian Sparber [Thu, 25 Jan 2024 17:54:14 +0000 (18:54 +0100)]
messageTray: Remove unused properties from Source

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agoFdoNotifications: Don't use a fallback for no icon
Julian Sparber [Wed, 6 Dec 2023 19:48:43 +0000 (20:48 +0100)]
FdoNotifications: Don't use a fallback for no icon

There is no need to have an icon for every notification, don't add a
fallback.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agonotifications: Never use source icon for notifications
Julian Sparber [Wed, 6 Dec 2023 19:37:56 +0000 (20:37 +0100)]
notifications: Never use source icon for notifications

With the new design we will show the source icon in the header of a
notification.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agoFdoNotification: Highlight difference between icon/image and app-icon
Julian Sparber [Fri, 19 Jan 2024 18:08:46 +0000 (19:08 +0100)]
FdoNotification: Highlight difference between icon/image and app-icon

This just renames the `icon` variable to `appIcon` to make clear that
this icon is considered to be the app icon.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageList: Remove secondary actor API from Message
Julian Sparber [Fri, 26 Jan 2024 14:18:44 +0000 (15:18 +0100)]
messageList: Remove secondary actor API from Message

The secondary actor isn't used for anything anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agocalender: Use datetime property to set timestamp for notifications
Julian Sparber [Fri, 26 Jan 2024 13:55:32 +0000 (14:55 +0100)]
calender: Use datetime property to set timestamp for notifications

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageList: Add property to display the timestamp of a message
Julian Sparber [Fri, 26 Jan 2024 13:54:04 +0000 (14:54 +0100)]
messageList: Add property to display the timestamp of a message

This also adds the needed actor to display the timestamp.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomessageTray: Remove the secondary icon from Notification
Julian Sparber [Thu, 25 Jan 2024 17:02:43 +0000 (18:02 +0100)]
messageTray: Remove the secondary icon from Notification

This was only used by the telepathy client, but after dropping the
presense indicator this isn't used anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agotelepathyClient: Stop displaying presence in notification
Julian Sparber [Thu, 25 Jan 2024 16:54:09 +0000 (17:54 +0100)]
telepathyClient: Stop displaying presence in notification

The presence indicator in notification uses API only needed for the
telepathyClient, since it's a complete fringe feature nowadays it's not
worth maintaining specific API for it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3103>

2 years agomagnifier: Fix isTrackingMouse()
Evan Welsh [Sat, 30 Oct 2021 22:00:02 +0000 (15:00 -0700)]
magnifier: Fix isTrackingMouse()

Commit 8aed51180f changed the way mouse tracking is implemented,
but missed updating that function.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2037>

2 years agomagnifier: Removed unused get*Color() methods
Evan Welsh [Sat, 30 Oct 2021 22:00:02 +0000 (15:00 -0700)]
magnifier: Removed unused get*Color() methods

They use API from Clutter.Rectangle which hasn't been used in the
magnifier since commit c815979f, and has since been removed from
Clutter altogether.

Since the methods are unused, remove them instead of fixing them.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2037>

2 years agooverview: Hide search results while leaving overview
Suryashankar Das [Fri, 12 Mar 2021 19:49:10 +0000 (01:19 +0530)]
overview: Hide search results while leaving overview

There is currently no proper transition from search results
to the session: Only the top bar fades, but the rest of the
screen just changes abruptly at the end of the transition.

Fix this by hiding search results before leaving the overview,
so the regular transition can take place.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3821

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3152>

2 years agocleanup: Remove unused argument from createResultObject()
Andy Holmes [Fri, 18 Aug 2023 05:25:36 +0000 (22:25 -0700)]
cleanup: Remove unused argument from createResultObject()

The `SearchResultsView` is passed through to the `createResultObject()`
method of search providers, but doesn't seem to be used at all anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2901>

2 years agounlockDialog: Only show switch-user button for multiple users
Florian Müllner [Wed, 7 Sep 2022 14:57:08 +0000 (16:57 +0200)]
unlockDialog: Only show switch-user button for multiple users

We don't offer "Switch user" on single-user systems when unlocked,
so it is a bit weird to include it while locked.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2475>

2 years agomain: Only restore key focus on pop when modal actor is still focused
Jonas Dreßler [Sat, 13 Feb 2021 15:16:20 +0000 (16:16 +0100)]
main: Only restore key focus on pop when modal actor is still focused

If something grabs the key focus while a modal is pushed, keeping
key-focus on that actor seems like the smarter thing to do than setting
it back to the last focus after the modal gets popped again. So check if
the key focus actor that we set when pushing the modal got changed when
popping that modal, and if it got changed, simply don't touch key focus.

This fixes a bug with the close dialog, where key focus isn't correctly
set to the dialog after alt-tabbing to a window showing a close dialog.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/786>

2 years agocloseDialog: Actually set key focus to button when grabbing key focus
Jonas Dreßler [Sun, 27 Oct 2019 17:58:16 +0000 (18:58 +0100)]
closeDialog: Actually set key focus to button when grabbing key focus

When setting the key focus to `this._dialog`, the default button is not
automatically focused and no button has key focus.

Use the `initialKeyFocus` property of the dialog instead, and set focus
to the default button if the dialog is not already focused.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/786>

2 years agoswitchMonitor: New assets for switcher items
Sam Hewitt [Fri, 19 Jan 2024 17:52:29 +0000 (14:22 -0330)]
switchMonitor: New assets for switcher items

- include new assets in the symbolic source
- update existing screenshot assets with new display design

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6013
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3128>

2 years agoboxpointer: Clamp alignments to expected range
Florian Müllner [Mon, 29 Jan 2024 16:29:51 +0000 (17:29 +0100)]
boxpointer: Clamp alignments to expected range

The values are expected to be between 0 (start) and 1 (end),
enforce that with appropriate clamp() calls.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3150>

2 years agoboxpointer: Swap arrow alignment on RTL
Florian Müllner [Mon, 29 Jan 2024 16:41:54 +0000 (17:41 +0100)]
boxpointer: Swap arrow alignment on RTL

The current code uses the arrow alignment to align the menu between
the top/left (0) and bottom/right(1), regardless of the text direction.

Instead of adjusting code everywhere, reinterpret the parameter
to refer to start/end instead, and swap the alignment with an
RTL text direction.

Credit to Sebastian Keller for spotting the cause of the issue.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5261
Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7356

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3150>

2 years agolookingGlass: Do not escape markup in button subclass constructor
Carlos Garnacho [Mon, 29 Jan 2024 15:41:03 +0000 (16:41 +0100)]
lookingGlass: Do not escape markup in button subclass constructor

Buttons no longer take Pango markup by default, there's no longer
need to escape text here.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agoendSessionDialog: Drop markup from button labels
Carlos Garnacho [Mon, 29 Jan 2024 15:38:50 +0000 (16:38 +0100)]
endSessionDialog: Drop markup from button labels

This is no longer necessary with button labels being non-markup
by default.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agokeyboard: Avoid markup escaping when setting button labels
Carlos Garnacho [Mon, 29 Jan 2024 15:35:35 +0000 (16:35 +0100)]
keyboard: Avoid markup escaping when setting button labels

These are no longer interpreted as Pango markup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agost: Do not use markup in button labels
Carlos Garnacho [Mon, 29 Jan 2024 15:18:31 +0000 (16:18 +0100)]
st: Do not use markup in button labels

It sounds strange that buttons would admit Pango markup
in their label text. It sounds better to default to plain
text, and let users wanting markup to access the child
directly.

This also makes the first label being set consistent
with later text being assigned wrt markup usage, since
the non-markup ClutterText API is used if the child is
already present and of the expected type.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>

2 years agowindowManager: Keep dim effect in overview
Florian Müllner [Mon, 29 Jan 2024 20:12:44 +0000 (21:12 +0100)]
windowManager: Keep dim effect in overview

Removing the effect dates back to the time when we didn't show
attached dialogs in the overview. Since we do show attached
dialogs as such nowadays, it makes sense to keep the effect.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6265

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3151>

2 years agodocs: List additional docs and API references in README
Florian Müllner [Tue, 16 Jan 2024 19:41:12 +0000 (20:41 +0100)]
docs: List additional docs and API references in README

With this change, all our documentation can now (directly or
indirectly) be accessed from the toplevel README.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Expand contribution section in README
Florian Müllner [Wed, 17 Jan 2024 04:52:10 +0000 (05:52 +0100)]
docs: Expand contribution section in README

Provide a link to the relevant handbook section and some guidance
for submitting a successful merge request, instead of just throwing
two links at the user.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Add section on feature requests
Florian Müllner [Wed, 17 Jan 2024 02:54:29 +0000 (03:54 +0100)]
docs: Add section on feature requests

Small and well-defined feature requests can be very useful, but
unfortunately too many are neither small nor well-defined.

Try to improve on that by adding another README section that
explains that changes need design approval, and points to
appropriate places to have broader design discussions,
hopefully without being too off-putting.

While this is unlikely to stop all "bad" feature requests, it
at least gives us something to point to when closing requests.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Elaborate on issue reporting
Florian Müllner [Wed, 17 Jan 2024 02:38:52 +0000 (03:38 +0100)]
docs: Elaborate on issue reporting

We currently just link to the issue tracker without providing
any further guidance.

Improve on that by pointing to the appropriate handbook chapter,
point out extensions as a possible source of issues, and direct
users towards discourse/matrix for support/discussions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Elaborate on supported versions
Florian Müllner [Tue, 16 Jan 2024 18:43:31 +0000 (19:43 +0100)]
docs: Elaborate on supported versions

The link to the GNOME schedule was added because of some confusion
of which versions are supported upstream. Briefly outline the
policy of "last two stable + current main", so that the information
can also be deduced from tags etc. without scrolling through the
schedule calendar.

While at it, update the link to the schedule to point to the
future release.gnome.org page.

Death to the wiki!

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Split commit message conventions from README
Florian Müllner [Tue, 16 Jan 2024 00:54:56 +0000 (01:54 +0100)]
docs: Split commit message conventions from README

We currently only have a very brief outline of the commit message
conventions in the README.

Improve on that by splitting out the relevant section into a separate
file that outlines all conventions we use in addition to the general
guidelines in the [handbook].

[handbook]: https://handbook.gnome.org/development/commit-messages.html

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Mention code of conduct in README
Florian Müllner [Wed, 17 Jan 2024 05:15:43 +0000 (06:15 +0100)]
docs: Mention code of conduct in README

All project interactions are subject to the code of conduct,
so it seems like a good idea to explicitly mention that in
the README.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Remove project wiki reference from README
Florian Müllner [Tue, 16 Jan 2024 16:35:59 +0000 (17:35 +0100)]
docs: Remove project wiki reference from README

The wiki is in the process of being retired, so we should stop
linking to it.

Death to the wiki!

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Drop default branch section from README
Florian Müllner [Tue, 16 Jan 2024 01:33:56 +0000 (02:33 +0100)]
docs: Drop default branch section from README

It's been more than 2 ½ years since we renamed the default branch,
people have probably got the message by now.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Add debugging information
Florian Müllner [Wed, 17 Jan 2024 09:36:10 +0000 (10:36 +0100)]
docs: Add debugging information

The current debugging page on the wiki is fairly outdated and
very X11-centric, so base the new page on the recently added
mutter documentation instead, but with a bigger focus on
Javascript debugging.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Document how to build and run gnome-shell
Florian Müllner [Wed, 17 Jan 2024 08:03:45 +0000 (09:03 +0100)]
docs: Document how to build and run gnome-shell

While we use the standard meson build steps, our dependencies
are non-trivial and running the shell can be tricky; it's
certainly worth documenting.

This is also a good opportunity for plugging out toolbox tooling.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Document C coding style
Florian Müllner [Tue, 16 Jan 2024 22:42:31 +0000 (23:42 +0100)]
docs: Document C coding style

We have a fair bit of C code, yet don't document the expected
coding style. This is not much of an issue for regular GNOME
contributors as we are following the conventions of the wider
project (glib, gtk, clutter, ...), but it's still better to
spell it out.

Do that by adapting the corresponding documentation from mutter.

Even if much of our C code doesn't match all the new guidelines,
it's good to consolidate the coding style between both projects.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Update title of coding style guide
Florian Müllner [Tue, 16 Jan 2024 19:43:03 +0000 (20:43 +0100)]
docs: Update title of coding style guide

We are about to add a C coding style, so make clear that the
existing coding style doc refers to JS.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Move HACKING
Florian Müllner [Tue, 16 Jan 2024 19:40:55 +0000 (20:40 +0100)]
docs: Move HACKING

Start consolidating project-wide documentation in the docs/ folder.

While at it, change the name `js-coding-style`, which is both less
ominous and allows for an accompanying `c-coding-style`.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Use dashes in filenames
Florian Müllner [Tue, 16 Jan 2024 19:03:03 +0000 (20:03 +0100)]
docs: Use dashes in filenames

Mutter's documentation was extended recently, with files using a
pattern of `some-stuff.md`. There is no strong argument for using
camel case, so switch to the same pattern as mutter to remove some
unnecessary friction for people who contribute to both projects.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Use consistent spacing
Florian Müllner [Wed, 17 Jan 2024 05:21:24 +0000 (06:21 +0100)]
docs: Use consistent spacing

Sometimes we use a blank line between heading and paragraph,
sometimes we don't. Settle on the former.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agodocs: Use mutter.gnome.org URL for API docs
Florian Müllner [Tue, 16 Jan 2024 18:39:18 +0000 (19:39 +0100)]
docs: Use mutter.gnome.org URL for API docs

Mutter has a new public website, so use that for its API docs
instead of gitlab pages.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3122>

2 years agoci: Check snippets in coding style
Florian Müllner [Thu, 25 Jan 2024 23:56:35 +0000 (00:56 +0100)]
ci: Check snippets in coding style

To avoid having the coding style get out of sync with the actual
coding style in the future, run eslint on the individual snippets
when either the guide or the linter config change.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agodoc: Use valid code in snippets
Florian Müllner [Thu, 25 Jan 2024 23:30:25 +0000 (00:30 +0100)]
doc: Use valid code in snippets

Some of the code examples use invalid code like `var` as variable
name or declarations in a single-statement context.

Fix those.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agodoc: Fix style errors in coding style
Florian Müllner [Thu, 25 Jan 2024 22:15:42 +0000 (23:15 +0100)]
doc: Fix style errors in coding style

As we've adapted our coding style, the corresponding documentation
hasn't always caught up. Fix the errors that eslint would point
out if it checked the code snippets.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agodoc: Remove outdated paragraph on quote style
Florian Müllner [Thu, 25 Jan 2024 23:18:00 +0000 (00:18 +0100)]
doc: Remove outdated paragraph on quote style

We stopped differentiating between translatable and non-translatable
strings a long time ago.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3146>

2 years agoiconGrid: Don't recreate StIcons on icon theme changes
Florian Müllner [Tue, 23 Jan 2024 22:40:04 +0000 (23:40 +0100)]
iconGrid: Don't recreate StIcons on icon theme changes

Now that StIcon updates its texture automatically on icon theme
changes, we only have to recreate icon actors that aren't StIcons.

(This probably only applies to the folder icon in the app grid
where the sub-icons do use St.Icon, but making that assumption
feels dodgy with an API as generic as `createIcon()`)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3141>

2 years agost/icon: Automatically update on icon theme changes
Florian Müllner [Tue, 23 Jan 2024 20:20:51 +0000 (21:20 +0100)]
st/icon: Automatically update on icon theme changes

St.Icon is very commonly used for displaying themed icons, yet so
far updating the icon on icon theme changes is left to the caller.

Unsurprisingly, very few actually do that, with the result that
for most icons, icon theme changes only take effect after a delay
(say, a color change on hover) or not at all.

This is also inconsistent with GTK, where Gtk.Image will automatically
pick up icon theme changes.

Address this by tracking whether the current icon corresponds to
a themed icon, and update it automatically on theme changes if
it does.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3141>

2 years agocalendar: Stylesheet clean up & fixes
Sam Hewitt [Mon, 15 Jan 2024 16:59:26 +0000 (13:29 -0330)]
calendar: Stylesheet clean up & fixes

- added style class for when there are no world clocks present
- restructured the scss to match the widget structure
- cleaned up padding and font color styles
- improved high contrast support

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7324
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3120>

2 years agobuild: Remove dummy gi-docgen dependency
Florian Müllner [Sat, 20 Jan 2024 23:12:18 +0000 (00:12 +0100)]
build: Remove dummy gi-docgen dependency

Instead, add a provide to the wrap that allows it to be pulled in
by the `find_program('gi-docgen')` call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3131>

2 years agoutil: Handle .rc in version comparisons
Florian Müllner [Fri, 19 Jan 2024 21:56:59 +0000 (22:56 +0100)]
util: Handle .rc in version comparisons

We somehow missed that the new version scheme include '.rc' when
adding the comparison function, whoops.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3130>

2 years agotests: Fix check for global scope pollution
Florian Müllner [Sun, 21 Jan 2024 17:50:54 +0000 (18:50 +0100)]
tests: Fix check for global scope pollution

Since commit c570011 dropped the `with` statement, this bit of
the test has only checked for writes to a specific variable
in the file.

There is no direct replacement for `with` here, the best we can
do (I think) is comparing property names on the global objects
before and after the `eval()` call.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3132>

2 years agotools/toolbox: Remove prepare step when setting up classic
Florian Müllner [Mon, 22 Jan 2024 12:50:33 +0000 (13:50 +0100)]
tools/toolbox: Remove prepare step when setting up classic

The classic styling is no longer build from a subproject, so
there aren't any submodules that need initializing anymore.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3133>

2 years agoAdd .editorconfig
Florian Müllner [Mon, 22 Jan 2024 20:36:29 +0000 (21:36 +0100)]
Add .editorconfig

This should ensure that all editors which support
https://editorconfig.org/ use the correct indentation
with spaces (not tabs) by default.

This is hardly a full specification of our coding style,
but it's a correct subset and better than nothing.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3137>

2 years agostyle: Be consistent with Adwaita flat elements in High Contrast
Sam Hewitt [Thu, 25 Jan 2024 15:41:26 +0000 (12:11 -0330)]
style: Be consistent with Adwaita flat elements in High Contrast

- update drawing mixin for buttons to override HC inset in flat style
- drop outlines for app icons in dash

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3143>

2 years agostyle: Fix issues with OSD buttons in light style
Sam Hewitt [Tue, 23 Jan 2024 15:36:17 +0000 (12:06 -0330)]
style: Fix issues with OSD buttons in light style

- update drawing mixin to account for missing always_dark colors
- fix button in app grid folder not being always dark

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3139>

2 years agodash: Resolve padding and alignment issues with dash items
Sam Hewitt [Mon, 15 Jan 2024 15:19:40 +0000 (11:49 -0330)]
dash: Resolve padding and alignment issues with dash items

- revert a change to y-expand on dash items
- clean up the manual padding on dash items in stylesheet
- fix an issue with the running dot being misaligned

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7322
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3119>

2 years agostyle: Fix color and margin issue in notification and dialog buttons
Sam Hewitt [Tue, 23 Jan 2024 15:17:09 +0000 (11:47 -0330)]
style: Fix color and margin issue in notification and dialog buttons

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3138>

2 years agoUpdate Galician translation
Fran Dieguez [Wed, 24 Jan 2024 00:20:51 +0000 (00:20 +0000)]
Update Galician translation

2 years agodata: Add Text Editor to the dash by default
Allan Day [Tue, 23 Jan 2024 11:15:34 +0000 (11:15 +0000)]
data: Add Text Editor to the dash by default

Add another app to the dash, to prevent it from being too empty by
default in some situations.

Fixes #7027

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3135>

2 years agoci: Bump mutter image
Florian Müllner [Tue, 23 Jan 2024 11:48:35 +0000 (12:48 +0100)]
ci: Bump mutter image

Mutter's wayland-protocols dependency has been bumped, so pull
in the updated image that satisfies it.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3136>

2 years agoUpdate Turkish translation
Sabri Ünal [Mon, 22 Jan 2024 08:32:04 +0000 (08:32 +0000)]
Update Turkish translation

2 years agoUpdate Czech translation
Daniel Rusek [Mon, 22 Jan 2024 00:46:52 +0000 (00:46 +0000)]
Update Czech translation

2 years agoUpdate Czech translation
Daniel Rusek [Mon, 22 Jan 2024 00:26:29 +0000 (00:26 +0000)]
Update Czech translation

2 years agopanel: Actually switch to connectObject()
Florian Müllner [Fri, 19 Jan 2024 18:29:03 +0000 (19:29 +0100)]
panel: Actually switch to connectObject()

Fixes: 29ba8ab03c ("panel: Use connectObject() for overview signals")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3129>

2 years agopanel: Use connectObject() for overview signals
Florian Müllner [Fri, 19 Jan 2024 13:01:27 +0000 (14:01 +0100)]
panel: Use connectObject() for overview signals

We expect top bar and activities button to be around for the
entire duration of the session, but some extra caution doesn't
hurt.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3126>

2 years agopanel: Remove unnecessary code
Florian Müllner [Fri, 19 Jan 2024 12:35:53 +0000 (13:35 +0100)]
panel: Remove unnecessary code

Since commit a4660293748, the activities button uses the standard
`:checked` pseudo class in the overview instead of the custom
`:overview`.

As a side effect, the generic handling of the `CHECKED` Atk state
in StWidget now covers the case, and we no longer need to manage
the state explicitly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3126>

2 years agokeyboard: Add keyboard model configuration support
Leorize [Thu, 1 Dec 2022 07:11:57 +0000 (07:11 +0000)]
keyboard: Add keyboard model configuration support

Enables the use of a new `xkb-model` dconf key to let user configure
their desired keyboard model.

Also included is additional glue for respecting X11Model set at the
system level (ie. via `localectl`).

For simplicity, this assumes the use of one global keyboard model.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2583>

2 years agowindowManager: Fix effects of transient wayland windows
Florian Müllner [Thu, 18 Jan 2024 17:15:19 +0000 (18:15 +0100)]
windowManager: Fix effects of transient wayland windows

On wayland, transient windows don't use the DIALOG window type,
so any effects that special-case dialogs currently pick the
wrong animation.

Fix that with an "animation window type" that is used instead
of the real type.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3125>

2 years agotests/build: Silence meson deprecation warning
Robert Mader [Thu, 18 Jan 2024 13:14:55 +0000 (14:14 +0100)]
tests/build: Silence meson deprecation warning

This produced the following warning:
```
DEPRECATION: Project uses feature that was always broken, and is now
deprecated since '1.3.0': str.format: Value other than strings,
integers, bools, options, dictionaries and lists thereof..
```

The resulting value of `SHELL_BACKGROUND_IMAGE` was indeed bogus, not
containing a proper file path.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3123>

2 years agost/drawing-area: Merge ClutterCanvas to StDrawingArea
Shmuel Melamud [Tue, 9 Jan 2024 02:51:31 +0000 (04:51 +0200)]
st/drawing-area: Merge ClutterCanvas to StDrawingArea

Since StDrawingArea is the only user of ClutterCanvas, it is possible
to move ClutterCanvas completely out of Mutter to gnome-shell. This
allows to remove another Cairo dependency from Mutter.

This patch merges ClutterCanvas code extracted from Mutter to
StDrawingArea.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3098>

2 years agopopupMenu/switch: Follow "show-status-shapes" setting
Florian Müllner [Wed, 10 Jan 2024 18:53:58 +0000 (19:53 +0100)]
popupMenu/switch: Follow "show-status-shapes" setting

Whether or not switches include shapes to indicate their ON/OFF
state is currently controlled by the stylesheet.

However there are use cases for both using the HighContrast style
without shapes, and for using shapes with the regular styesheet,
so follow the newly added "show-status-shapes" setting instead.

https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2675

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3107>

2 years agopopupMenu/switch: Use icons for state indicators
Florian Müllner [Wed, 10 Jan 2024 18:45:59 +0000 (19:45 +0100)]
popupMenu/switch: Use icons for state indicators

The indicators are currently part of the background image in the
high contrast theme. Using symbolic icons instead allows separating
the switch shapes from the high-contrast setting in the future.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3107>

2 years agodata: Strip blanks from SVG icons
Florian Müllner [Fri, 12 Jan 2024 15:33:22 +0000 (16:33 +0100)]
data: Strip blanks from SVG icons

The size reduction will be modest, but given that there's no downside,
it's still a good idea.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3107>

2 years agoci: Bump mutter image
Florian Müllner [Wed, 10 Jan 2024 19:30:45 +0000 (20:30 +0100)]
ci: Bump mutter image

... to pull in an up-to-date gsettings-desktop-schemas version.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3107>

2 years agobuild: Make g-ir-scanner warnings fatal when werror is set
Florian Müllner [Tue, 16 Jan 2024 12:30:36 +0000 (13:30 +0100)]
build: Make g-ir-scanner warnings fatal when werror is set

This should help catching problems with introspection in CI.

Adapted from Sebastian Wick's corresponding mutter change
in https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3528.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3121>

2 years agostatus/backlight: Do only one dbus call per local change
Barnabás Pőcze [Tue, 16 Jan 2024 22:41:24 +0000 (23:41 +0100)]
status/backlight: Do only one dbus call per local change

The values of the two control widgets are syncronized, meaning
that both emit signals when the local value changes, regardless
which one is visible and is actually used by the user.

This is not ideal because it leads to two dbus calls
per local change. To alleviate this, only consider
changes from the widget that is visible.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3086>

2 years agostatus/backlight: Fix keyboard backlight infinite loop
Barnabás Pőcze [Wed, 3 Jan 2024 02:04:46 +0000 (03:04 +0100)]
status/backlight: Fix keyboard backlight infinite loop

The logic could enter an infinite loop because it tried to
propagate local changes to g-s-d that were caused by signals sent
by g-s-d. For example:

  1. slider is set to 50
  2. Set(50) dbus call is sent
  3. slider is set to 51
  4. Set(51) dbus call is sent
  5. PropertiesChanged arrives due to Set(50)
  6. this._sliderItem.value is set to 50
  7. notify::value is emitted from this._sliderItem
  8. Set(50) dbus call is sent
  9. PropertiesChanged arrives due to Set(51)
 10. this._sliderItem.value is set to 51
 11. notify::value is emitted from this._sliderItem
 12. Set(51) dbus call is sent

To alleviate this issue, block signal handlers when the local state is
changed due to a remote event.

Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7111

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3086>

2 years agoUpdate Punjabi translation
A S Alam [Tue, 16 Jan 2024 13:35:23 +0000 (13:35 +0000)]
Update Punjabi translation

2 years agostyle: Add lockscreen style to entry drawing mixin
Sam Hewitt [Mon, 15 Jan 2024 14:09:42 +0000 (10:39 -0330)]
style: Add lockscreen style to entry drawing mixin

- include style condition to entry drawing mixin to accommodate transparent bg on lockscreen
- see https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6802 and https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3109#note_1970652

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7326
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3118>

2 years agocloseDialog: Close existing dialogs on shutdown
Florian Müllner [Mon, 15 Jan 2024 13:39:59 +0000 (14:39 +0100)]
closeDialog: Close existing dialogs on shutdown

Otherwise mutter will request to hide the dialog when the meta
context is destroyed, but at the JS context has already shut down,
resulting in a crash.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7328

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3117>

2 years agotools/toolbox: Add `meson test` convenience wrapper
Florian Müllner [Fri, 12 Jan 2024 13:48:11 +0000 (14:48 +0100)]
tools/toolbox: Add `meson test` convenience wrapper

It can be fairly tedious to enter a toolbox and invoke `meson test`
with the right build directory, so add a companion script to the
existing meson-build.sh to handle that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3114>

2 years agotools/toolbox: Expose --wipe meson flag
Florian Müllner [Fri, 12 Jan 2024 13:28:03 +0000 (14:28 +0100)]
tools/toolbox: Expose --wipe meson flag

It's useful when the existing build directory became invalid,
for instance after a meson update, and exposing it directly
from the wrapper script is more convenient than removing the
directory or entering the toolbox manually to invoke meson.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3113>

2 years agotools/toolbox: Consistently handle option parsing failures
Florian Müllner [Fri, 12 Jan 2024 11:17:17 +0000 (12:17 +0100)]
tools/toolbox: Consistently handle option parsing failures

`getopt` already prints a message on parse errors, but it still
seems like good style to point to --help as we do elsewhere.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3113>

2 years agotools/toolbox: Consistently abort on failure
Florian Müllner [Fri, 12 Jan 2024 13:37:27 +0000 (14:37 +0100)]
tools/toolbox: Consistently abort on failure

Unlike the other scripts, meson-build currently doesn't set
the `-e` option. The script is mainly a wrapper around a single
toolbox call, but it means that any errors during option parsing
print a warning, but are otherwise ignored.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3113>

2 years agoextensions-app: Remember window state
Florian Müllner [Sat, 13 Jan 2024 22:34:00 +0000 (23:34 +0100)]
extensions-app: Remember window state

It's good practice to save and reload the window size and
maximization state, and easy enough to implement, so let's
do that.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3115>

2 years agoUpdate Persian translation
Danial Behzadi [Sat, 13 Jan 2024 00:49:29 +0000 (00:49 +0000)]
Update Persian translation

2 years agotests: Add fittsy test
Florian Müllner [Thu, 11 Jan 2024 18:01:46 +0000 (19:01 +0100)]
tests: Add fittsy test

Both the dash and top bar items are expected to extend to the
screen edge, to make them easier click targets according to
Fitts' law.

This has the tendency to break fairly regularly, so add a small
test that checks the Fittsiness of the show-apps and activities
buttons to catch regressions.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7318
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3111>

2 years agostyle: Fix panel and dash to account for mouse travel
Sam Hewitt [Thu, 11 Jan 2024 23:12:08 +0000 (19:42 -0330)]
style: Fix panel and dash to account for mouse travel

- rework overview-icon styles for the dash so they extend to the edge of the screen once again
- revert changes to panel_button mixin
- rework panel_button mixin to be more flexible
- fixes #7318

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3112>

2 years agonotificationDaemon: Stop special-casing Empathy
Florian Müllner [Thu, 11 Jan 2024 15:22:38 +0000 (16:22 +0100)]
notificationDaemon: Stop special-casing Empathy

Our telepathy component has been optional for years, and it is
disabled by default on major distros, so we cannot assume that
it handles any particular notifications.

Plus Empathy itself is mostly dead, so it's unlikely to be used
much anymore anyway.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3110>

2 years agostyle: Refactor the button and entry drawing css
Sam Hewitt [Thu, 11 Jan 2024 01:51:11 +0000 (22:21 -0330)]
style: Refactor the button and entry drawing css

- use a single button mixin for all buttons with a saner 'style' parameter
- rework the entry mixins to be similar to the buttons'
- clear out all unused or deprecated mixins
- create some drawing functions for focus ring and high contrast inset
- replace instances of old mixins with the new

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3109>

2 years agoUpdate Hungarian translation
Balázs Meskó [Thu, 11 Jan 2024 19:22:15 +0000 (19:22 +0000)]
Update Hungarian translation

(cherry picked from commit b3690409929c425b1b9afeb297d38e517d0af8fd)

2 years agodata: Remove gnome-shell.portal
Georges Basile Stavracas Neto [Wed, 10 Jan 2024 15:08:45 +0000 (12:08 -0300)]
data: Remove gnome-shell.portal

Now that xdg-desktop-portal-gnome implements the Access portal
interface, GNOME Shell doesn't have to be the portal backend for
that anymore.

The D-Bus implementation is still preserved, because internally,
xdg-desktop-portal-gnome may still proxy the Access call to GNOME
Shell when the parent window is not available. That's a private
exchange between xdg-desktop-portal-gnome and GNOME Shell though,
and doesn't require GNOME Shell to be a full portal backend.

See https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome/-/merge_requests/140

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3106>

2 years agooverviewControls: Subclass layout manager directly
Florian Müllner [Wed, 10 Jan 2024 11:02:10 +0000 (12:02 +0100)]
overviewControls: Subclass layout manager directly

All the ControlsManagerLayout uses from BoxLayout is the spacing
property, both size requests and allocation are completely custom.

That makes subclassing really questionable, so stop doing that
and just hook up to the `spacing` style property manually.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3104>

2 years agost/settings: Don't notify "icon-theme" on "high-contrast" changes
Florian Müllner [Wed, 10 Jan 2024 14:56:52 +0000 (15:56 +0100)]
st/settings: Don't notify "icon-theme" on "high-contrast" changes

Since commit e831a924, the two are no longer linked.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3105>

2 years agomountOperation: Close when drive gets disconnected
Florian Müllner [Thu, 4 Jan 2024 13:39:45 +0000 (14:39 +0100)]
mountOperation: Close when drive gets disconnected

If the volume that corresponds to the mount operation has an
associated drive, we should withdraw any pending dialogs or
notifications when the drive gets physically disconnected,
as they've become obsolete.

Close https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7302

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3089>

2 years agocalendar: Stylesheet follow-ups and fixes
Sam Hewitt [Tue, 9 Jan 2024 18:36:59 +0000 (15:06 -0330)]
calendar: Stylesheet follow-ups and fixes

- drop extraneous calendar-day style_class on week headings
- fix wrong variable in insensitive button mixin
- add some missing focus styles to calendar month header
- fix the asset for today with-events in light theme
- adjust HighContrast visuals for other month days
- make pager buttons circular

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3102>

2 years agostyle: Use system base color for screenshot overview
Sam Hewitt [Thu, 28 Dec 2023 19:48:55 +0000 (16:18 -0330)]
style: Use system base color for screenshot overview

- Fixes #7289

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3084>